package utils;

public class SpotUserData extends UserData {


	private static final long serialVersionUID = -726106927492042527L;
	
	public static final int DEFAULT_LIFE_COUNT = 2;
	
	public SpotUserData(int id, String firstName, String surname, int userType) {
		this(id, firstName, surname, userType, DEFAULT_LIFE_COUNT);
	}
		
	
	public SpotUserData(int id, String firstName, String surname, int userType, int lifeCount) {
		
		putProperty("id", id);
		putProperty("firstName", firstName);
		putProperty("surname", surname);
		putProperty("userType", userType);
		putProperty("defaultLifeCount", lifeCount);
		putProperty("currentLifeCount", lifeCount);
		putProperty("online", false);
		
	}
	
	@Override
	public String toString() {
		return getProperty("firstName")+" "+getProperty("surname");
	}
	
}
